home *** CD-ROM | disk | FTP | other *** search
MacBinary | 2001-01-24 | 7.9 KB | [TEXT/ttxt] |
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary).
Confidence | Program | Detection | Match Type | Support
|
---|
1%
| dexvert
| MacBinary (archive/macBinary)
| fallback
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| MacBinary II, inited, Wed Jan 24 09:57:15 2001, modified Wed Jan 24 09:57:15 2001, creator SimpleText, type ASCII, 7096 bytes "Download File" , at 0x1c38 671 bytes resource
| default (weak)
| |
99%
| file
| data
| default
| |
74%
| TrID
| Macintosh plain text (MacBinary)
| default
| |
25%
| TrID
| MacBinary 2
| default (weak)
| |
100%
| dearkID
| deark: macbinary
| default
| |
100%
| siegfried
| fmt/1762 MacBinary (II)
| default
| |
100%
| lsar
| MacBinary
| default
|
|
id metadata |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [ttxt] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0d 44 6f 77 6e 6c 6f | 61 64 20 46 69 6c 65 00 |..Downlo|ad File.|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 74 74 78 | 74 01 00 00 00 00 00 00 |.TEXTttx|t.......|
|00000050| 00 00 00 00 00 1b b8 00 | 00 02 9f b6 94 9d cb b6 |........|........|
|00000060| 94 9d cb 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 13 19 00 00 |........|........|
|00000080| 3c 61 63 74 69 6f 6e 20 | 6e 61 6d 65 3d 22 44 6f |<action |name="Do|
|00000090| 77 6e 6c 6f 61 64 20 46 | 69 6c 65 22 20 68 65 69 |wnload F|ile" hei|
|000000a0| 67 68 74 3d 31 32 20 72 | 65 67 69 6f 6e 3d 31 34 |ght=12 r|egion=14|
|000000b0| 20 74 69 74 6c 65 3d 22 | 83 5f 83 45 83 93 83 8d | title="|._.E....|
|000000c0| 81 5b 83 68 83 74 83 40 | 83 43 83 8b 22 3e 0d 3c |.[.h.t.@|.C..">.<|
|000000d0| 61 63 74 69 6f 6e 2d 76 | 65 72 73 69 6f 6e 20 76 |action-v|ersion v|
|000000e0| 65 72 73 69 6f 6e 3d 22 | 32 2e 31 22 3e 0d d2 44 |ersion="|2.1">..D|
|000000f0| 6f 77 6e 6c 6f 61 64 20 | 46 69 6c 65 d3 20 41 63 |ownload |File. Ac|
|00000100| 74 69 6f 6e 0d 53 6f 66 | 74 70 72 65 73 73 20 53 |tion.Sof|tpress S|
|00000110| 79 73 74 65 6d 73 20 4c | 69 6d 69 74 65 64 20 31 |ystems L|imited 1|
|00000120| 39 39 39 2c 20 32 30 30 | 30 0d 3c 2f 61 63 74 69 |999, 200|0.</acti|
|00000130| 6f 6e 2d 76 65 72 73 69 | 6f 6e 3e 0d 3c 61 63 74 |on-versi|on>.<act|
|00000140| 69 6f 6e 2d 76 65 72 73 | 69 6f 6e 20 76 65 72 73 |ion-vers|ion vers|
|00000150| 69 6f 6e 3d 22 32 2e 31 | 22 20 72 65 67 69 6f 6e |ion="2.1|" region|
|00000160| 3d 31 34 3e 0d 22 83 5f | 83 45 83 93 83 8d 81 5b |=14>."._|.E.....[|
|00000170| 83 68 83 74 83 40 83 43 | 83 8b 22 20 83 41 83 4e |.h.t.@.C|.." .A.N|
|00000180| 83 56 83 87 83 93 0d 53 | 6f 66 74 70 72 65 73 73 |.V.....S|oftpress|
|00000190| 20 53 79 73 74 65 6d 73 | 20 4c 69 6d 69 74 65 64 | Systems| Limited|
|000001a0| 20 31 39 39 39 2c 20 32 | 30 30 30 0d 3c 2f 61 63 | 1999, 2|000.</ac|
|000001b0| 74 69 6f 6e 2d 76 65 72 | 73 69 6f 6e 3e 0d 3c 61 |tion-ver|sion>.<a|
|000001c0| 63 74 69 6f 6e 2d 66 69 | 6c 65 20 6e 61 6d 65 3d |ction-fi|le name=|
|000001d0| 22 46 69 6c 65 22 20 72 | 65 67 69 6f 6e 3d 31 34 |"File" r|egion=14|
|000001e0| 20 74 69 74 6c 65 3d 22 | 83 74 83 40 83 43 83 8b | title="|.t.@.C..|
|000001f0| 22 3e 0d 3c 2f 61 63 74 | 69 6f 6e 2d 66 69 6c 65 |">.</act|ion-file|
|00000200| 3e 0d 3c 61 63 74 69 6f | 6e 2d 74 65 78 74 20 6e |>.<actio|n-text n|
|00000210| 61 6d 65 3d 22 4e 61 6d | 65 22 20 64 65 66 61 75 |ame="Nam|e" defau|
|00000220| 6c 74 3d 22 44 6f 77 6e | 6c 6f 61 64 22 20 72 65 |lt="Down|load" re|
|00000230| 67 69 6f 6e 3d 31 34 20 | 74 69 74 6c 65 3d 22 96 |gion=14 |title=".|
|00000240| bc 91 4f 22 20 72 65 71 | 75 69 72 65 64 2f 3e 0d |..O" req|uired/>.|
|00000250| 3c 61 63 74 69 6f 6e 2d | 6a 61 76 61 73 63 72 69 |<action-|javascri|
|00000260| 70 74 3e 0d 0d 09 76 61 | 72 20 6b 50 61 72 61 67 |pt>...va|r kParag|
|00000270| 72 61 70 68 53 74 79 6c | 65 73 20 3d 20 6e 65 77 |raphStyl|es = new|
|00000280| 20 41 72 72 61 79 28 22 | 70 22 2c 22 61 22 2c 22 | Array("|p","a","|
|00000290| 73 70 61 6e 22 2c 22 62 | 22 2c 22 69 22 2c 22 75 |span","b|","i","u|
|000002a0| 22 2c 22 62 6c 69 6e 6b | 22 2c 22 73 74 72 69 6b |","blink|","strik|
|000002b0| 65 22 2c 22 66 6f 6e 74 | 22 29 3b 0d 09 76 61 72 |e","font|");..var|
|000002c0| 20 6b 53 74 79 6c 65 73 | 57 69 74 68 4c 69 6e 6b | kStyles|WithLink|
|000002d0| 73 20 3d 20 6e 65 77 20 | 41 72 72 61 79 28 22 61 |s = new |Array("a|
|000002e0| 22 2c 22 73 70 61 6e 22 | 2c 22 62 22 2c 22 69 22 |","span"|,"b","i"|
|000002f0| 2c 22 75 22 2c 22 62 6c | 69 6e 6b 22 2c 22 73 74 |,"u","bl|ink","st|
|00000300| 72 69 6b 65 22 2c 22 66 | 6f 6e 74 22 29 3b 0d 09 |rike","f|ont");..|
|00000310| 76 61 72 20 6b 53 74 79 | 6c 65 73 20 3d 20 6e 65 |var kSty|les = ne|
|00000320| 77 20 41 72 72 61 79 28 | 22 73 70 61 6e 22 2c 22 |w Array(|"span","|
|00000330| 62 22 2c 22 69 22 2c 22 | 75 22 2c 22 62 6c 69 6e |b","i","|u","blin|
|00000340| 6b 22 2c 22 73 74 72 69 | 6b 65 22 2c 22 66 6f 6e |k","stri|ke","fon|
|00000350| 74 22 29 3b 0d 09 0d 09 | 66 75 6e 63 74 69 6f 6e |t");....|function|
|00000360| 20 53 70 6c 69 74 42 65 | 66 6f 72 65 28 6f 75 74 | SplitBe|fore(out|
|00000370| 65 72 54 61 67 29 0d 09 | 7b 0d 09 09 76 61 72 20 |erTag)..|{...var |
|00000380| 63 6f 6e 74 65 6e 74 54 | 61 67 20 3d 20 6f 75 74 |contentT|ag = out|
|00000390| 65 72 54 61 67 2e 66 77 | 46 69 6e 64 28 22 22 2c |erTag.fw|Find("",|
|000003a0| 20 66 77 49 74 65 6d 29 | 3b 0d 09 09 76 61 72 20 | fwItem)|;...var |
|000003b0| 6c 65 66 74 43 6f 6e 74 | 65 6e 74 73 20 3d 20 63 |leftCont|ents = c|
|000003c0| 6f 6e 74 65 6e 74 54 61 | 67 2e 66 77 45 6e 63 6c |ontentTa|g.fwEncl|
|000003d0| 6f 73 69 6e 67 2e 66 77 | 46 69 6e 64 41 6c 6c 43 |osing.fw|FindAllC|
|000003e0| 6f 6e 74 65 6e 74 28 29 | 3b 0d 09 09 69 66 20 28 |ontent()|;...if (|
|000003f0| 6c 65 66 74 43 6f 6e 74 | 65 6e 74 73 5b 30 5d 20 |leftCont|ents[0] |
|00000400| 3d 3d 20 63 6f 6e 74 65 | 6e 74 54 61 67 29 0d 09 |== conte|ntTag)..|
|00000410| 09 09 72 65 74 75 72 6e | 20 6e 75 6c 6c 3b 0d 0d |..return| null;..|
|00000420| 09 09 2f 2f 20 63 6f 70 | 79 20 74 68 65 20 6f 75 |..// cop|y the ou|
|00000430| 74 74 65 72 20 74 61 67 | 20 73 6f 20 77 65 20 68 |tter tag| so we h|
|00000440| 61 76 65 20 74 77 6f 20 | 63 6f 70 69 65 73 20 6f |ave two |copies o|
|00000450| 66 20 77 68 61 74 20 77 | 65 20 77 61 6e 74 0d 09 |f what w|e want..|
|00000460| 09 2f 2f 20 74 68 65 6e | 20 77 65 20 63 61 6e 20 |.// then| we can |
|00000470| 6a 75 73 74 20 64 65 6c | 65 74 65 20 74 68 65 20 |just del|ete the |
|00000480| 62 69 74 73 20 77 65 20 | 64 6f 6e 27 74 20 77 61 |bits we |don't wa|
|00000490| 6e 74 0d 0d 09 09 76 61 | 72 20 72 69 67 68 74 54 |nt....va|r rightT|
|000004a0| 61 67 20 3d 20 6f 75 74 | 65 72 54 61 67 2e 66 77 |ag = out|erTag.fw|
|000004b0| 45 6e 63 6c 6f 73 69 6e | 67 2e 66 77 41 64 64 28 |Enclosin|g.fwAdd(|
|000004c0| 6f 75 74 65 72 54 61 67 | 2c 20 6f 75 74 65 72 54 |outerTag|, outerT|
|000004d0| 61 67 29 3b 0d 09 09 76 | 61 72 20 72 69 67 68 74 |ag);...v|ar right|
|000004e0| 43 6f 6e 74 65 6e 74 54 | 61 67 20 3d 20 72 69 67 |ContentT|ag = rig|
|000004f0| 68 74 54 61 67 2e 66 77 | 46 69 6e 64 28 22 22 2c |htTag.fw|Find("",|
|00000500| 20 66 77 49 74 65 6d 29 | 3b 0d 09 09 76 61 72 20 | fwItem)|;...var |
|00000510| 72 69 67 68 74 43 6f 6e | 74 65 6e 74 73 20 3d 20 |rightCon|tents = |
|00000520| 72 69 67 68 74 43 6f 6e | 74 65 6e 74 54 61 67 2e |rightCon|tentTag.|
|00000530| 66 77 45 6e 63 6c 6f 73 | 69 6e 67 2e 66 77 46 69 |fwEnclos|ing.fwFi|
|00000540| 6e 64 41 6c 6c 43 6f 6e | 74 65 6e 74 28 29 3b 0d |ndAllCon|tent();.|
|00000550| 0d 09 09 2f 2f 20 64 65 | 6c 65 74 65 20 61 6e 79 |...// de|lete any|
|00000560| 20 63 6f 6e 74 65 6e 74 | 73 20 74 6f 20 74 68 65 | content|s to the|
|00000570| 20 6c 65 66 74 20 6f 66 | 20 74 68 65 20 69 6e 6c | left of| the inl|
|00000580| 69 6e 65 20 69 6e 20 74 | 68 65 20 72 69 67 68 74 |ine in t|he right|
|00000590| 2d 6d 6f 73 74 20 74 61 | 67 0d 09 09 66 6f 72 20 |-most ta|g...for |
|000005a0| 28 69 20 3d 20 30 20 3b | 20 69 20 3c 20 6c 65 66 |(i = 0 ;| i < lef|
|000005b0| 74 43 6f 6e 74 65 6e 74 | 73 2e 6c 65 6e 67 74 68 |tContent|s.length|
|000005c0| 20 3b 20 69 2b 2b 29 0d | 09 09 7b 0d 09 09 09 69 | ; i++).|..{....i|
|000005d0| 66 20 28 72 69 67 68 74 | 43 6f 6e 74 65 6e 74 73 |f (right|Contents|
|000005e0| 5b 69 5d 3d 3d 72 69 67 | 68 74 43 6f 6e 74 65 6e |[i]==rig|htConten|
|000005f0| 74 54 61 67 29 0d 09 09 | 09 09 62 72 65 61 6b 3b |tTag)...|..break;|
|00000600| 0d 09 09 09 72 69 67 68 | 74 43 6f 6e 74 65 6e 74 |....righ|tContent|
|00000610| 73 5b 69 5d 2e 66 77 44 | 65 6c 65 74 65 28 29 3b |s[i].fwD|elete();|
|00000620| 0d 09 09 7d 0d 0d 09 09 | 2f 2f 20 64 65 6c 65 74 |...}....|// delet|
|00000630| 65 20 61 6e 79 20 63 6f | 6e 74 65 6e 74 73 20 74 |e any co|ntents t|
|00000640| 6f 20 74 68 65 20 6c 65 | 66 74 20 6f 66 20 74 68 |o the le|ft of th|
|00000650| 65 20 69 6e 6c 69 6e 65 | 20 6f 6e 20 74 68 65 20 |e inline| on the |
|00000660| 6c 65 66 74 2d 6d 6f 73 | 74 20 74 61 67 0d 09 09 |left-mos|t tag...|
|00000670| 66 6f 72 20 28 3b 20 69 | 20 3c 20 6c 65 66 74 43 |for (; i| < leftC|
|00000680| 6f 6e 74 65 6e 74 73 2e | 6c 65 6e 67 74 68 20 3b |ontents.|length ;|
|00000690| 20 69 2b 2b 29 0d 09 09 | 09 6c 65 66 74 43 6f 6e | i++)...|.leftCon|
|000006a0| 74 65 6e 74 73 5b 69 5d | 2e 66 77 44 65 6c 65 74 |tents[i]|.fwDelet|
|000006b0| 65 28 29 3b 0d 0d 09 09 | 2f 2f 20 61 6e 64 20 64 |e();....|// and d|
|000006c0| 65 6c 65 74 65 20 61 6e | 79 20 73 74 79 6c 69 6e |elete an|y stylin|
|000006d0| 67 20 74 6f 20 74 68 65 | 20 72 69 67 68 74 20 6f |g to the| right o|
|000006e0| 66 20 74 68 65 20 69 6e | 6c 69 6e 65 20 6f 6e 20 |f the in|line on |
|000006f0| 74 68 65 20 6c 65 66 74 | 6d 6f 73 74 20 74 61 67 |the left|most tag|
|00000700| 0d 09 09 76 61 72 20 6f | 75 74 65 72 53 74 79 6c |...var o|uterStyl|
|00000710| 65 54 61 67 20 3d 20 46 | 69 6e 64 4f 75 74 65 72 |eTag = F|indOuter|
|00000720| 6d 6f 73 74 54 61 67 28 | 63 6f 6e 74 65 6e 74 54 |mostTag(|contentT|
|00000730| 61 67 2c 20 6b 53 74 79 | 6c 65 73 29 3b 0d 09 09 |ag, kSty|les);...|
|00000740| 69 66 20 28 6f 75 74 65 | 72 53 74 79 6c 65 54 61 |if (oute|rStyleTa|
|00000750| 67 20 21 3d 20 63 6f 6e | 74 65 6e 74 54 61 67 29 |g != con|tentTag)|
|00000760| 0d 09 09 7b 0d 09 09 09 | 76 61 72 20 63 6f 6e 74 |...{....|var cont|
|00000770| 65 6e 74 73 20 3d 20 6f | 75 74 65 72 53 74 79 6c |ents = o|uterStyl|
|00000780| 65 54 61 67 2e 66 77 45 | 6e 63 6c 6f 73 69 6e 67 |eTag.fwE|nclosing|
|00000790| 2e 66 77 46 69 6e 64 41 | 6c 6c 43 6f 6e 74 65 6e |.fwFindA|llConten|
|000007a0| 74 28 29 3b 0d 09 09 09 | 66 6f 72 20 28 69 20 3d |t();....|for (i =|
|000007b0| 20 63 6f 6e 74 65 6e 74 | 73 2e 6c 65 6e 67 74 68 | content|s.length|
|000007c0| 20 2d 31 20 3b 20 69 20 | 3e 3d 30 20 3b 20 69 2d | -1 ; i |>=0 ; i-|
|000007d0| 2d 29 0d 09 09 09 7b 0d | 09 09 09 09 69 66 20 28 |-)....{.|....if (|
|000007e0| 63 6f 6e 74 65 6e 74 73 | 5b 69 5d 3d 3d 6f 75 74 |contents|[i]==out|
|000007f0| 65 72 53 74 79 6c 65 54 | 61 67 29 0d 09 09 09 09 |erStyleT|ag).....|
|00000800| 09 62 72 65 61 6b 3b 0d | 09 09 09 09 63 6f 6e 74 |.break;.|....cont|
|00000810| 65 6e 74 73 5b 69 5d 2e | 66 77 44 65 6c 65 74 65 |ents[i].|fwDelete|
|00000820| 28 29 3b 0d 09 09 09 7d | 0d 09 09 7d 0d 0d 09 09 |();....}|...}....|
|00000830| 72 65 74 75 72 6e 20 72 | 69 67 68 74 54 61 67 3b |return r|ightTag;|
|00000840| 0d 09 7d 0d 0d 09 66 75 | 6e 63 74 69 6f 6e 20 53 |..}...fu|nction S|
|00000850| 70 6c 69 74 41 66 74 65 | 72 28 6f 75 74 65 72 54 |plitAfte|r(outerT|
|00000860| 61 67 29 0d 09 7b 0d 09 | 09 76 61 72 20 63 6f 6e |ag)..{..|.var con|
|00000870| 74 65 6e 74 54 61 67 20 | 3d 20 6f 75 74 65 72 54 |tentTag |= outerT|
|00000880| 61 67 2e 66 77 46 69 6e | 64 28 22 22 2c 20 66 77 |ag.fwFin|d("", fw|
|00000890| 49 74 65 6d 29 3b 0d 09 | 09 69 66 20 28 63 6f 6e |Item);..|.if (con|
|000008a0| 74 65 6e 74 54 61 67 20 | 3d 3d 20 6e 75 6c 6c 29 |tentTag |== null)|
|000008b0| 0d 09 09 09 72 65 74 75 | 72 6e 3b 0d 09 09 76 61 |....retu|rn;...va|
|000008c0| 72 20 6c 65 66 74 43 6f | 6e 74 65 6e 74 73 20 3d |r leftCo|ntents =|
|000008d0| 20 63 6f 6e 74 65 6e 74 | 54 61 67 2e 66 77 45 6e | content|Tag.fwEn|
|000008e0| 63 6c 6f 73 69 6e 67 2e | 66 77 46 69 6e 64 41 6c |closing.|fwFindAl|
|000008f0| 6c 43 6f 6e 74 65 6e 74 | 28 29 3b 0d 09 09 69 66 |lContent|();...if|
|00000900| 20 28 6c 65 66 74 43 6f | 6e 74 65 6e 74 73 5b 6c | (leftCo|ntents[l|
|00000910| 65 66 74 43 6f 6e 74 65 | 6e 74 73 2e 6c 65 6e 67 |eftConte|nts.leng|
|00000920| 74 68 2d 31 5d 20 3d 3d | 20 63 6f 6e 74 65 6e 74 |th-1] ==| content|
|00000930| 54 61 67 29 0d 09 09 09 | 72 65 74 75 72 6e 20 6e |Tag)....|return n|
|00000940| 75 6c 6c 3b 0d 0d 09 09 | 76 61 72 20 72 69 67 68 |ull;....|var righ|
|00000950| 74 54 61 67 20 3d 20 6f | 75 74 65 72 54 61 67 2e |tTag = o|uterTag.|
|00000960| 66 77 45 6e 63 6c 6f 73 | 69 6e 67 2e 66 77 41 64 |fwEnclos|ing.fwAd|
|00000970| 64 28 6f 75 74 65 72 54 | 61 67 2c 20 6f 75 74 65 |d(outerT|ag, oute|
|00000980| 72 54 61 67 29 3b 0d 09 | 09 76 61 72 20 72 69 67 |rTag);..|.var rig|
|00000990| 68 74 43 6f 6e 74 65 6e | 74 54 61 67 20 3d 20 72 |htConten|tTag = r|
|000009a0| 69 67 68 74 54 61 67 2e | 66 77 46 69 6e 64 28 22 |ightTag.|fwFind("|
|000009b0| 22 2c 20 66 77 49 74 65 | 6d 29 3b 0d 09 09 76 61 |", fwIte|m);...va|
|000009c0| 72 20 72 69 67 68 74 43 | 6f 6e 74 65 6e 74 73 20 |r rightC|ontents |
|000009d0| 3d 20 72 69 67 68 74 43 | 6f 6e 74 65 6e 74 54 61 |= rightC|ontentTa|
|000009e0| 67 2e 66 77 45 6e 63 6c | 6f 73 69 6e 67 2e 66 77 |g.fwEncl|osing.fw|
|000009f0| 46 69 6e 64 41 6c 6c 43 | 6f 6e 74 65 6e 74 28 29 |FindAllC|ontent()|
|00000a00| 3b 0d 0d 09 09 66 6f 72 | 20 28 69 20 3d 20 30 20 |;....for| (i = 0 |
|00000a10| 3b 20 69 20 3c 20 6c 65 | 66 74 43 6f 6e 74 65 6e |; i < le|ftConten|
|00000a20| 74 73 2e 6c 65 6e 67 74 | 68 20 3b 20 69 2b 2b 29 |ts.lengt|h ; i++)|
|00000a30| 0d 09 09 7b 0d 09 09 09 | 72 69 67 68 74 43 6f 6e |...{....|rightCon|
|00000a40| 74 65 6e 74 73 5b 69 5d | 2e 66 77 44 65 6c 65 74 |tents[i]|.fwDelet|
|00000a50| 65 28 29 3b 0d 09 09 09 | 69 66 20 28 72 69 67 68 |e();....|if (righ|
|00000a60| 74 43 6f 6e 74 65 6e 74 | 73 5b 69 5d 3d 3d 72 69 |tContent|s[i]==ri|
|00000a70| 67 68 74 43 6f 6e 74 65 | 6e 74 54 61 67 29 0d 09 |ghtConte|ntTag)..|
|00000a80| 09 09 7b 0d 09 09 09 09 | 69 2b 2b 3b 0d 09 09 09 |..{.....|i++;....|
|00000a90| 09 62 72 65 61 6b 3b 0d | 09 09 09 7d 0d 09 09 7d |.break;.|...}...}|
|00000aa0| 0d 0d 09 09 66 6f 72 20 | 28 3b 20 69 20 3c 20 6c |....for |(; i < l|
|00000ab0| 65 66 74 43 6f 6e 74 65 | 6e 74 73 2e 6c 65 6e 67 |eftConte|nts.leng|
|00000ac0| 74 68 20 3b 20 69 2b 2b | 29 0d 09 09 09 6c 65 66 |th ; i++|)....lef|
|00000ad0| 74 43 6f 6e 74 65 6e 74 | 73 5b 69 5d 2e 66 77 44 |tContent|s[i].fwD|
|00000ae0| 65 6c 65 74 65 28 29 3b | 0d 0d 09 09 2f 2f 20 61 |elete();|....// a|
|00000af0| 6e 64 20 64 65 6c 65 74 | 65 20 61 6e 79 20 73 74 |nd delet|e any st|
|00000b00| 79 6c 69 6e 67 20 74 6f | 20 74 68 65 20 72 69 67 |yling to| the rig|
|00000b10| 68 74 20 6f 66 20 74 68 | 65 20 69 6e 6c 69 6e 65 |ht of th|e inline|
|00000b20| 20 6f 6e 20 74 68 65 20 | 6c 65 66 74 6d 6f 73 74 | on the |leftmost|
|00000b30| 20 74 61 67 0d 09 09 76 | 61 72 20 6f 75 74 65 72 | tag...v|ar outer|
|00000b40| 53 74 79 6c 65 54 61 67 | 20 3d 20 46 69 6e 64 4f |StyleTag| = FindO|
|00000b50| 75 74 65 72 6d 6f 73 74 | 54 61 67 28 63 6f 6e 74 |utermost|Tag(cont|
|00000b60| 65 6e 74 54 61 67 2c 20 | 6b 53 74 79 6c 65 73 29 |entTag, |kStyles)|
|00000b70| 3b 0d 09 09 69 66 20 28 | 6f 75 74 65 72 53 74 79 |;...if (|outerSty|
|00000b80| 6c 65 54 61 67 29 0d 09 | 09 7b 0d 09 09 09 76 61 |leTag)..|.{....va|
|00000b90| 72 20 63 6f 6e 74 65 6e | 74 73 20 3d 20 6f 75 74 |r conten|ts = out|
|00000ba0| 65 72 53 74 79 6c 65 54 | 61 67 2e 66 77 45 6e 63 |erStyleT|ag.fwEnc|
|00000bb0| 6c 6f 73 69 6e 67 2e 66 | 77 46 69 6e 64 41 6c 6c |losing.f|wFindAll|
|00000bc0| 43 6f 6e 74 65 6e 74 28 | 29 3b 0d 09 09 09 66 6f |Content(|);....fo|
|00000bd0| 72 20 28 69 20 3d 20 63 | 6f 6e 74 65 6e 74 73 2e |r (i = c|ontents.|
|00000be0| 6c 65 6e 67 74 68 20 2d | 31 20 3b 20 69 20 3e 3d |length -|1 ; i >=|
|00000bf0| 30 20 3b 20 69 2d 2d 29 | 0d 09 09 09 7b 0d 09 09 |0 ; i--)|....{...|
|00000c00| 09 09 69 66 20 28 63 6f | 6e 74 65 6e 74 73 5b 69 |..if (co|ntents[i|
|00000c10| 5d 20 3d 3d 20 6f 75 74 | 65 72 53 74 79 6c 65 54 |] == out|erStyleT|
|00000c20| 61 67 29 0d 09 09 09 09 | 09 62 72 65 61 6b 3b 0d |ag).....|.break;.|
|00000c30| 0d 09 09 09 09 63 6f 6e | 74 65 6e 74 73 5b 69 5d |.....con|tents[i]|
|00000c40| 2e 66 77 44 65 6c 65 74 | 65 28 29 3b 0d 09 09 09 |.fwDelet|e();....|
|00000c50| 7d 0d 09 09 7d 0d 0d 09 | 09 72 65 74 75 72 6e 20 |}...}...|.return |
|00000c60| 72 69 67 68 74 54 61 67 | 3b 0d 09 7d 0d 0d 09 66 |rightTag|;..}...f|
|00000c70| 75 6e 63 74 69 6f 6e 20 | 52 65 6d 6f 76 65 4c 69 |unction |RemoveLi|
|00000c80| 6e 6b 28 74 68 65 54 61 | 67 29 0d 09 7b 0d 09 09 |nk(theTa|g)..{...|
|00000c90| 69 66 20 28 21 74 68 65 | 54 61 67 2e 66 77 45 6e |if (!the|Tag.fwEn|
|00000ca0| 63 6c 6f 73 69 6e 67 29 | 0d 09 09 09 72 65 74 75 |closing)|....retu|
|00000cb0| 72 6e 3b 0d 09 09 09 0d | 09 09 76 61 72 20 6c 69 |rn;.....|..var li|
|00000cc0| 6e 6b 20 3d 20 28 74 68 | 65 54 61 67 2e 74 6f 53 |nk = (th|eTag.toS|
|00000cd0| 74 72 69 6e 67 28 29 2e | 74 6f 4c 6f 77 65 72 43 |tring().|toLowerC|
|00000ce0| 61 73 65 28 29 3d 3d 22 | 61 22 20 3f 20 74 68 65 |ase()=="|a" ? the|
|00000cf0| 54 61 67 20 3a 20 74 68 | 65 54 61 67 2e 66 77 46 |Tag : th|eTag.fwF|
|00000d00| 69 6e 64 28 22 61 22 29 | 29 3b 0d 09 09 69 66 20 |ind("a")|);...if |
|00000d10| 28 6c 69 6e 6b 29 0d 09 | 09 7b 0d 09 09 09 2f 2f |(link)..|.{....//|
|00000d20| 20 67 65 74 20 74 68 65 | 20 63 6f 6e 74 65 6e 74 | get the| content|
|00000d30| 73 20 6f 66 20 74 68 65 | 20 6c 69 6e 6b 20 28 65 |s of the| link (e|
|00000d40| 76 65 72 79 74 68 69 6e | 67 20 69 6e 73 69 64 65 |verythin|g inside|
|00000d50| 20 74 68 65 20 6c 69 6e | 6b 29 0d 09 09 09 63 6f | the lin|k)....co|
|00000d60| 6e 74 65 6e 74 73 20 3d | 20 6c 69 6e 6b 2e 66 77 |ntents =| link.fw|
|00000d70| 46 69 6e 64 41 6c 6c 43 | 6f 6e 74 65 6e 74 28 29 |FindAllC|ontent()|
|00000d80| 3b 0d 09 09 09 0d 09 09 | 09 2f 2f 20 6d 6f 76 65 |;.......|.// move|
|00000d90| 20 69 74 20 61 66 74 65 | 72 20 74 68 65 20 6c 69 | it afte|r the li|
|00000da0| 6e 6b 0d 09 09 09 6c 69 | 6e 6b 2e 66 77 45 6e 63 |nk....li|nk.fwEnc|
|00000db0| 6c 6f 73 69 6e 67 2e 66 | 77 4d 6f 76 65 28 63 6f |losing.f|wMove(co|
|00000dc0| 6e 74 65 6e 74 73 2c 20 | 6c 69 6e 6b 29 3b 0d 09 |ntents, |link);..|
|00000dd0| 09 09 0d 09 09 09 2f 2f | 20 64 65 6c 65 74 65 20 |......//| delete |
|00000de0| 74 68 65 20 6c 69 6e 6b | 0d 09 09 09 6c 69 6e 6b |the link|....link|
|00000df0| 2e 66 77 44 65 6c 65 74 | 65 28 29 3b 0d 09 09 7d |.fwDelet|e();...}|
|00000e00| 0d 09 7d 0d 09 0d 09 66 | 75 6e 63 74 69 6f 6e 20 |..}....f|unction |
|00000e10| 48 61 73 43 6f 6e 74 65 | 6e 74 28 74 61 67 29 0d |HasConte|nt(tag).|
|00000e20| 09 7b 0d 09 09 76 61 72 | 20 74 61 67 43 6f 6e 74 |.{...var| tagCont|
|00000e30| 65 6e 74 73 20 3d 20 74 | 61 67 2e 66 77 46 69 6e |ents = t|ag.fwFin|
|00000e40| 64 41 6c 6c 43 6f 6e 74 | 65 6e 74 28 29 3b 0d 09 |dAllCont|ent();..|
|00000e50| 09 66 6f 72 20 28 76 61 | 72 20 69 20 69 6e 20 74 |.for (va|r i in t|
|00000e60| 61 67 43 6f 6e 74 65 6e | 74 73 29 0d 09 09 7b 0d |agConten|ts)...{.|
|00000e70| 09 09 09 76 61 72 20 63 | 6f 6e 74 65 6e 74 20 3d |...var c|ontent =|
|00000e80| 20 74 61 67 43 6f 6e 74 | 65 6e 74 73 5b 69 5d 2e | tagCont|ents[i].|
|00000e90| 66 77 54 6f 48 54 4d 4c | 28 32 2c 31 29 3b 0d 09 |fwToHTML|(2,1);..|
|00000ea0| 09 09 69 66 20 28 63 6f | 6e 74 65 6e 74 21 3d 22 |..if (co|ntent!="|
|00000eb0| 22 20 26 26 20 63 6f 6e | 74 65 6e 74 20 21 3d 22 |" && con|tent !="|
|00000ec0| 5c 72 22 29 0d 09 09 09 | 09 72 65 74 75 72 6e 20 |\r")....|.return |
|00000ed0| 74 72 75 65 3b 0d 09 09 | 7d 0d 09 09 0d 09 09 72 |true;...|}......r|
|00000ee0| 65 74 75 72 6e 20 66 61 | 6c 73 65 3b 0d 09 7d 0d |eturn fa|lse;..}.|
|00000ef0| 09 0d 09 66 75 6e 63 74 | 69 6f 6e 20 52 65 6d 6f |...funct|ion Remo|
|00000f00| 76 65 45 6d 70 74 79 54 | 61 67 73 28 74 61 67 2c |veEmptyT|ags(tag,|
|00000f10| 20 63 61 6e 64 69 64 61 | 74 65 73 29 0d 09 7b 0d | candida|tes)..{.|
|00000f20| 09 09 76 61 72 20 69 6e | 6e 65 72 6d 6f 73 74 20 |..var in|nermost |
|00000f30| 3d 20 46 69 6e 64 49 6e | 6e 65 72 6d 6f 73 74 54 |= FindIn|nermostT|
|00000f40| 61 67 28 74 61 67 2c 20 | 63 61 6e 64 69 64 61 74 |ag(tag, |candidat|
|00000f50| 65 73 29 3b 0d 09 09 69 | 66 20 28 21 48 61 73 43 |es);...i|f (!HasC|
|00000f60| 6f 6e 74 65 6e 74 28 69 | 6e 6e 65 72 6d 6f 73 74 |ontent(i|nnermost|
|00000f70| 29 29 0d 09 09 09 74 61 | 67 2e 66 77 44 65 6c 65 |))....ta|g.fwDele|
|00000f80| 74 65 28 29 3b 0d 09 7d | 0d 09 0d 09 66 75 6e 63 |te();..}|....func|
|00000f90| 74 69 6f 6e 20 46 69 6e | 64 4f 75 74 65 72 6d 6f |tion Fin|dOutermo|
|00000fa0| 73 74 54 61 67 28 74 61 | 67 2c 20 63 61 6e 64 69 |stTag(ta|g, candi|
|00000fb0| 64 61 74 65 73 29 0d 09 | 7b 0d 09 09 77 68 69 6c |dates)..|{...whil|
|00000fc0| 65 20 28 74 72 75 65 29 | 0d 09 09 7b 0d 09 09 09 |e (true)|...{....|
|00000fd0| 76 61 72 20 66 6f 75 6e | 64 54 61 67 20 3d 20 74 |var foun|dTag = t|
|00000fe0| 61 67 2e 66 77 46 69 6e | 64 45 6e 63 6c 6f 73 69 |ag.fwFin|dEnclosi|
|00000ff0| 6e 67 28 63 61 6e 64 69 | 64 61 74 65 73 29 3b 0d |ng(candi|dates);.|
|00001000| 09 09 09 69 66 20 28 21 | 66 6f 75 6e 64 54 61 67 |...if (!|foundTag|
|00001010| 29 0d 09 09 09 09 72 65 | 74 75 72 6e 20 74 61 67 |).....re|turn tag|
|00001020| 3b 0d 09 09 09 74 61 67 | 20 3d 20 66 6f 75 6e 64 |;....tag| = found|
|00001030| 54 61 67 3b 0d 09 09 7d | 0d 09 7d 0d 0d 09 66 75 |Tag;...}|..}...fu|
|00001040| 6e 63 74 69 6f 6e 20 46 | 69 6e 64 50 72 65 76 69 |nction F|indPrevi|
|00001050| 6f 75 73 49 6e 6e 65 72 | 6d 6f 73 74 54 61 67 28 |ousInner|mostTag(|
|00001060| 74 61 67 2c 20 63 61 6e | 64 69 64 61 74 65 73 2c |tag, can|didates,|
|00001070| 20 6d 61 72 6b 65 72 54 | 61 67 29 0d 09 7b 0d 09 | markerT|ag)..{..|
|00001080| 09 76 61 72 20 70 72 65 | 76 45 6c 65 6d 20 3d 20 |.var pre|vElem = |
|00001090| 74 61 67 3b 0d 09 09 76 | 61 72 20 74 61 67 4c 69 |tag;...v|ar tagLi|
|000010a0| 73 74 20 3d 20 74 61 67 | 2e 66 77 46 69 6e 64 41 |st = tag|.fwFindA|
|000010b0| 6c 6c 28 63 61 6e 64 69 | 64 61 74 65 73 29 3b 0d |ll(candi|dates);.|
|000010c0| 09 09 6d 61 72 6b 65 72 | 54 61 67 20 3d 20 74 61 |..marker|Tag = ta|
|000010d0| 67 2e 66 77 46 69 6e 64 | 28 63 61 6e 64 69 64 61 |g.fwFind|(candida|
|000010e0| 74 65 73 2c 20 6d 61 72 | 6b 65 72 54 61 67 29 3b |tes, mar|kerTag);|
|000010f0| 0d 09 09 66 6f 72 20 28 | 76 61 72 20 69 20 69 6e |...for (|var i in|
|00001100| 20 74 61 67 4c 69 73 74 | 29 0d 09 09 7b 0d 09 09 | tagList|)...{...|
|00001110| 09 69 66 20 28 74 61 67 | 4c 69 73 74 5b 69 5d 20 |.if (tag|List[i] |
|00001120| 3d 3d 20 6d 61 72 6b 65 | 72 54 61 67 29 0d 09 09 |== marke|rTag)...|
|00001130| 09 09 72 65 74 75 72 6e | 20 70 72 65 76 45 6c 65 |..return| prevEle|
|00001140| 6d 3b 0d 09 09 09 70 72 | 65 76 45 6c 65 6d 20 3d |m;....pr|evElem =|
|00001150| 20 74 61 67 4c 69 73 74 | 5b 69 5d 3b 0d 09 09 7d | tagList|[i];...}|
|00001160| 0d 09 09 72 65 74 75 72 | 6e 20 70 72 65 76 45 6c |...retur|n prevEl|
|00001170| 65 6d 3b 0d 09 7d 0d 09 | 0d 09 66 75 6e 63 74 69 |em;..}..|..functi|
|00001180| 6f 6e 20 46 69 6e 64 49 | 6e 6e 65 72 6d 6f 73 74 |on FindI|nnermost|
|00001190| 54 61 67 28 74 61 67 2c | 20 63 61 6e 64 69 64 61 |Tag(tag,| candida|
|000011a0| 74 65 73 2c 20 61 66 74 | 65 72 54 61 67 29 0d 09 |tes, aft|erTag)..|
|000011b0| 7b 0d 09 09 76 61 72 20 | 66 6f 75 6e 64 54 61 67 |{...var |foundTag|
|000011c0| 20 3d 20 28 61 66 74 65 | 72 54 61 67 29 20 3f 20 | = (afte|rTag) ? |
|000011d0| 74 61 67 2e 66 77 46 69 | 6e 64 28 63 61 6e 64 69 |tag.fwFi|nd(candi|
|000011e0| 64 61 74 65 73 2c 20 61 | 66 74 65 72 54 61 67 29 |dates, a|fterTag)|
|000011f0| 20 3a 20 74 61 67 2e 66 | 77 46 69 6e 64 28 63 61 | : tag.f|wFind(ca|
|00001200| 6e 64 69 64 61 74 65 73 | 29 3b 0d 09 09 69 66 20 |ndidates|);...if |
|00001210| 28 21 66 6f 75 6e 64 54 | 61 67 29 0d 09 09 09 72 |(!foundT|ag)....r|
|00001220| 65 74 75 72 6e 20 74 61 | 67 3b 0d 09 09 74 61 67 |eturn ta|g;...tag|
|00001230| 20 3d 20 66 6f 75 6e 64 | 54 61 67 3b 0d 09 09 09 | = found|Tag;....|
|00001240| 0d 09 09 77 68 69 6c 65 | 20 28 74 72 75 65 29 0d |...while| (true).|
|00001250| 09 09 7b 0d 09 09 09 76 | 61 72 20 66 6f 75 6e 64 |..{....v|ar found|
|00001260| 54 61 67 20 3d 20 74 61 | 67 2e 66 77 46 69 6e 64 |Tag = ta|g.fwFind|
|00001270| 28 63 61 6e 64 69 64 61 | 74 65 73 29 3b 0d 09 09 |(candida|tes);...|
|00001280| 09 69 66 20 28 21 66 6f | 75 6e 64 54 61 67 29 0d |.if (!fo|undTag).|
|00001290| 09 09 09 09 72 65 74 75 | 72 6e 20 74 61 67 3b 0d |....retu|rn tag;.|
|000012a0| 09 09 09 74 61 67 20 3d | 20 66 6f 75 6e 64 54 61 |...tag =| foundTa|
|000012b0| 67 3b 0d 09 09 7d 0d 09 | 7d 0d 0d 09 66 75 6e 63 |g;...}..|}...func|
|000012c0| 74 69 6f 6e 20 46 69 78 | 49 6e 6c 69 6e 65 41 63 |tion Fix|InlineAc|
|000012d0| 74 69 6f 6e 53 74 79 6c | 69 6e 67 28 74 61 67 2c |tionStyl|ing(tag,|
|000012e0| 20 72 65 6d 6f 76 65 4c | 69 6e 6b 29 0d 09 7b 0d | removeL|ink)..{.|
|000012f0| 09 09 2f 2f 20 74 65 73 | 74 20 74 6f 20 73 65 65 |..// tes|t to see|
|00001300| 20 69 66 20 77 65 20 61 | 72 65 20 61 62 6c 65 20 | if we a|re able |
|00001310| 74 6f 20 73 75 70 70 6f | 72 74 20 74 68 65 73 65 |to suppo|rt these|
|00001320| 20 6e 65 77 20 66 65 61 | 74 75 72 65 73 0d 09 09 | new fea|tures...|
|00001330| 69 66 20 28 74 68 69 73 | 2e 66 77 41 63 74 69 6f |if (this|.fwActio|
|00001340| 6e 54 79 70 65 3d 3d 6e | 75 6c 6c 20 7c 7c 20 74 |nType==n|ull || t|
|00001350| 61 67 3d 3d 6e 75 6c 6c | 29 0d 09 09 09 72 65 74 |ag==null|)....ret|
|00001360| 75 72 6e 20 74 61 67 3b | 0d 0d 09 09 76 61 72 20 |urn tag;|....var |
|00001370| 6e 65 78 74 20 3d 20 74 | 61 67 2e 66 77 4e 65 78 |next = t|ag.fwNex|
|00001380| 74 3b 0d 09 09 69 66 20 | 28 6e 65 78 74 20 3d 3d |t;...if |(next ==|
|00001390| 20 6e 75 6c 6c 20 7c 7c | 20 21 6e 65 78 74 2e 66 | null ||| !next.f|
|000013a0| 77 49 73 52 61 77 29 0d | 09 09 7b 0d 09 09 09 2f |wIsRaw).|..{..../|
|000013b0| 2f 20 66 69 6e 64 20 74 | 68 65 20 6f 75 74 65 72 |/ find t|he outer|
|000013c0| 6d 6f 73 74 20 74 65 78 | 74 20 66 6f 72 6d 61 74 |most tex|t format|
|000013d0| 74 69 6e 67 20 74 68 65 | 20 63 6f 6e 74 61 69 6e |ting the| contain|
|000013e0| 73 20 74 68 65 20 69 6e | 6c 69 6e 65 0d 09 09 09 |s the in|line....|
|000013f0| 76 61 72 09 6f 75 74 65 | 72 46 6f 72 6d 61 74 74 |var.oute|rFormatt|
|00001400| 69 6e 67 20 3d 20 46 69 | 6e 64 4f 75 74 65 72 6d |ing = Fi|ndOuterm|
|00001410| 6f 73 74 54 61 67 28 74 | 61 67 2c 20 6b 53 74 79 |ostTag(t|ag, kSty|
|00001420| 6c 65 73 57 69 74 68 4c | 69 6e 6b 73 29 3b 0d 09 |lesWithL|inks);..|
|00001430| 09 09 0d 09 09 09 2f 2f | 20 69 66 20 74 68 65 20 |......//| if the |
|00001440| 69 6e 6c 69 6e 65 20 69 | 73 20 6e 6f 74 20 77 69 |inline i|s not wi|
|00001450| 74 68 69 6e 20 61 6e 79 | 20 63 68 61 72 61 63 74 |thin any| charact|
|00001460| 65 72 20 66 6f 72 6d 61 | 74 74 69 6e 67 20 74 68 |er forma|tting th|
|00001470| 65 6e 20 77 65 20 77 69 | 6c 6c 0d 09 09 09 2f 2f |en we wi|ll....//|
|00001480| 20 74 72 79 20 61 6e 64 | 20 6d 6f 76 65 20 69 74 | try and| move it|
|00001490| 20 69 6e 74 6f 20 74 68 | 65 20 6e 65 78 74 20 66 | into th|e next f|
|000014a0| 6f 72 6d 61 74 74 69 6e | 67 20 74 68 61 74 20 77 |ormattin|g that w|
|000014b0| 65 20 63 61 6e 0d 09 09 | 09 69 66 20 28 6f 75 74 |e can...|.if (out|
|000014c0| 65 72 46 6f 72 6d 61 74 | 74 69 6e 67 20 3d 3d 20 |erFormat|ting == |
|000014d0| 74 61 67 29 0d 09 09 09 | 7b 0d 09 09 09 09 2f 2f |tag)....|{.....//|
|000014e0| 20 66 69 6e 64 20 74 68 | 65 20 66 69 72 73 74 20 | find th|e first |
|000014f0| 66 6f 72 6d 61 74 74 69 | 6e 67 20 61 66 74 65 72 |formatti|ng after|
|00001500| 20 74 68 65 20 22 74 61 | 67 22 0d 09 09 09 09 76 | the "ta|g".....v|
|00001510| 61 72 20 69 6e 6e 65 72 | 46 6f 72 6d 61 74 74 69 |ar inner|Formatti|
|00001520| 6e 67 20 3d 20 46 69 6e | 64 49 6e 6e 65 72 6d 6f |ng = Fin|dInnermo|
|00001530| 73 74 54 61 67 28 6f 75 | 74 65 72 46 6f 72 6d 61 |stTag(ou|terForma|
|00001540| 74 74 69 6e 67 2e 66 77 | 45 6e 63 6c 6f 73 69 6e |tting.fw|Enclosin|
|00001550| 67 2c 20 6b 50 61 72 61 | 67 72 61 70 68 53 74 79 |g, kPara|graphSty|
|00001560| 6c 65 73 2c 20 74 61 67 | 29 3b 0d 09 09 09 09 0d |les, tag|);......|
|00001570| 09 09 09 09 2f 2f 20 69 | 66 20 74 68 65 72 65 20 |....// i|f there |
|00001580| 69 73 20 66 6f 72 6d 61 | 74 74 69 6e 67 20 74 68 |is forma|tting th|
|00001590| 65 6e 20 6d 6f 76 65 20 | 74 68 65 20 69 6e 6c 69 |en move |the inli|
|000015a0| 6e 65 20 74 68 65 72 65 | 0d 09 09 09 09 69 66 20 |ne there|.....if |
|000015b0| 28 69 6e 6e 65 72 46 6f | 72 6d 61 74 74 69 6e 67 |(innerFo|rmatting|
|000015c0| 20 21 3d 20 6f 75 74 65 | 72 46 6f 72 6d 61 74 74 | != oute|rFormatt|
|000015d0| 69 6e 67 2e 66 77 45 6e | 63 6c 6f 73 69 6e 67 29 |ing.fwEn|closing)|
|000015e0| 0d 09 09 09 09 09 69 6e | 6e 65 72 46 6f 72 6d 61 |......in|nerForma|
|000015f0| 74 74 69 6e 67 2e 66 77 | 4d 6f 76 65 28 74 61 67 |tting.fw|Move(tag|
|00001600| 2c 20 69 6e 6e 65 72 46 | 6f 72 6d 61 74 74 69 6e |, innerF|ormattin|
|00001610| 67 29 3b 0d 09 09 09 09 | 65 6c 73 65 0d 09 09 09 |g);.....|else....|
|00001620| 09 7b 0d 09 09 09 09 09 | 76 61 72 20 70 72 65 76 |.{......|var prev|
|00001630| 69 6f 75 73 20 3d 20 74 | 61 67 2e 66 77 50 72 65 |ious = t|ag.fwPre|
|00001640| 76 69 6f 75 73 3b 0d 09 | 09 09 09 09 69 66 20 28 |vious;..|....if (|
|00001650| 70 72 65 76 69 6f 75 73 | 20 3d 3d 20 6e 75 6c 6c |previous| == null|
|00001660| 20 7c 7c 20 21 70 72 65 | 76 69 6f 75 73 2e 66 77 | || !pre|vious.fw|
|00001670| 49 73 52 61 77 29 0d 09 | 09 09 09 09 7b 0d 09 09 |IsRaw)..|....{...|
|00001680| 09 09 09 09 69 6e 6e 65 | 72 46 6f 72 6d 61 74 74 |....inne|rFormatt|
|00001690| 69 6e 67 20 3d 20 46 69 | 6e 64 50 72 65 76 69 6f |ing = Fi|ndPrevio|
|000016a0| 75 73 49 6e 6e 65 72 6d | 6f 73 74 54 61 67 28 6f |usInnerm|ostTag(o|
|000016b0| 75 74 65 72 46 6f 72 6d | 61 74 74 69 6e 67 2e 66 |uterForm|atting.f|
|000016c0| 77 45 6e 63 6c 6f 73 69 | 6e 67 2c 20 6b 50 61 72 |wEnclosi|ng, kPar|
|000016d0| 61 67 72 61 70 68 53 74 | 79 6c 65 73 2c 20 74 61 |agraphSt|yles, ta|
|000016e0| 67 29 3b 0d 09 09 09 09 | 09 09 69 66 20 28 69 6e |g);.....|..if (in|
|000016f0| 6e 65 72 46 6f 72 6d 61 | 74 74 69 6e 67 20 21 3d |nerForma|tting !=|
|00001700| 20 6f 75 74 65 72 46 6f | 72 6d 61 74 74 69 6e 67 | outerFo|rmatting|
|00001710| 2e 66 77 45 6e 63 6c 6f | 73 69 6e 67 29 0d 09 09 |.fwEnclo|sing)...|
|00001720| 09 09 09 09 09 69 6e 6e | 65 72 46 6f 72 6d 61 74 |.....inn|erFormat|
|00001730| 74 69 6e 67 2e 66 77 4d | 6f 76 65 28 74 61 67 29 |ting.fwM|ove(tag)|
|00001740| 3b 0d 09 09 09 09 09 7d | 0d 09 09 09 09 7d 0d 09 |;......}|.....}..|
|00001750| 09 09 7d 0d 09 09 7d 0d | 0d 09 09 69 66 20 28 72 |..}...}.|...if (r|
|00001760| 65 6d 6f 76 65 4c 69 6e | 6b 29 0d 09 09 7b 0d 09 |emoveLin|k)...{..|
|00001770| 09 09 2f 2f 20 69 66 20 | 77 65 20 64 6f 20 6e 6f |..// if |we do no|
|00001780| 74 20 77 61 6e 74 20 61 | 6e 79 20 6c 69 6e 6b 20 |t want a|ny link |
|00001790| 6f 6e 20 74 68 65 20 69 | 6e 6c 69 6e 65 20 74 68 |on the i|nline th|
|000017a0| 65 6e 20 63 68 65 63 6b | 20 74 6f 0d 09 09 09 2f |en check| to..../|
|000017b0| 2f 20 73 65 65 20 69 66 | 20 74 68 65 72 65 20 69 |/ see if| there i|
|000017c0| 73 20 61 20 6c 69 6e 6b | 20 61 70 70 6c 69 65 64 |s a link| applied|
|000017d0| 0d 09 09 09 6c 69 6e 6b | 20 3d 20 74 61 67 2e 66 |....link| = tag.f|
|000017e0| 77 46 69 6e 64 45 6e 63 | 6c 6f 73 69 6e 67 28 22 |wFindEnc|losing("|
|000017f0| 61 22 29 3b 0d 09 09 09 | 69 66 20 28 6c 69 6e 6b |a");....|if (link|
|00001800| 20 21 3d 20 6e 75 6c 6c | 29 0d 09 09 09 7b 0d 09 | != null|)....{..|
|00001810| 09 09 09 2f 2f 20 69 66 | 20 74 68 65 72 65 20 69 |...// if| there i|
|00001820| 73 20 61 20 6c 69 6e 6b | 20 61 70 70 6c 69 65 64 |s a link| applied|
|00001830| 20 61 63 72 6f 73 73 20 | 75 73 20 74 68 65 6e 20 | across |us then |
|00001840| 77 65 20 77 69 6c 6c 20 | 68 61 76 65 20 74 6f 20 |we will |have to |
|00001850| 73 70 6c 69 74 0d 09 09 | 09 09 2f 2f 20 74 68 65 |split...|..// the|
|00001860| 20 73 74 79 6c 65 20 72 | 75 6e 20 62 65 74 77 65 | style r|un betwe|
|00001870| 65 6e 20 74 68 65 20 6c | 69 6e 6b 20 61 6e 64 20 |en the l|ink and |
|00001880| 72 65 70 6c 69 63 61 74 | 65 20 69 74 20 69 6e 20 |replicat|e it in |
|00001890| 74 68 65 20 69 6e 6c 69 | 6e 65 0d 09 09 09 09 76 |the inli|ne.....v|
|000018a0| 61 72 20 72 65 6d 61 69 | 6e 64 65 72 20 3d 20 53 |ar remai|nder = S|
|000018b0| 70 6c 69 74 42 65 66 6f | 72 65 28 6c 69 6e 6b 29 |plitBefo|re(link)|
|000018c0| 3b 0d 09 09 09 09 69 66 | 20 28 72 65 6d 61 69 6e |;.....if| (remain|
|000018d0| 64 65 72 20 3d 3d 20 6e | 75 6c 6c 29 0d 09 09 09 |der == n|ull)....|
|000018e0| 09 09 72 65 6d 61 69 6e | 64 65 72 20 3d 20 6c 69 |..remain|der = li|
|000018f0| 6e 6b 3b 0d 09 09 09 09 | 65 6c 73 65 0d 09 09 09 |nk;.....|else....|
|00001900| 09 7b 0d 09 09 09 09 09 | 2f 2f 20 74 68 69 73 20 |.{......|// this |
|00001910| 63 61 6e 20 72 65 73 75 | 6c 74 20 69 6e 20 61 20 |can resu|lt in a |
|00001920| 73 65 74 20 6f 66 20 74 | 61 67 73 20 77 69 74 68 |set of t|ags with|
|00001930| 20 6e 6f 20 63 6f 6e 74 | 65 6e 74 0d 09 09 09 09 | no cont|ent.....|
|00001940| 09 2f 2f 20 62 65 69 6e | 67 20 67 65 6e 65 72 61 |.// bein|g genera|
|00001950| 74 65 64 20 2d 20 77 65 | 20 6c 6f 6f 6b 20 66 6f |ted - we| look fo|
|00001960| 72 20 74 68 6f 73 65 20 | 61 6e 64 20 66 69 6c 74 |r those |and filt|
|00001970| 65 72 20 74 68 65 6d 20 | 0d 09 09 09 09 09 52 65 |er them |......Re|
|00001980| 6d 6f 76 65 45 6d 70 74 | 79 54 61 67 73 28 6c 69 |moveEmpt|yTags(li|
|00001990| 6e 6b 2c 20 6b 50 61 72 | 61 67 72 61 70 68 53 74 |nk, kPar|agraphSt|
|000019a0| 79 6c 65 73 29 3b 0d 09 | 09 09 09 7d 0d 0d 09 09 |yles);..|...}....|
|000019b0| 09 09 53 70 6c 69 74 41 | 66 74 65 72 28 72 65 6d |..SplitA|fter(rem|
|000019c0| 61 69 6e 64 65 72 29 3b | 0d 09 09 09 09 0d 09 09 |ainder);|........|
|000019d0| 09 09 2f 2f 20 6e 6f 77 | 20 72 65 6d 6f 76 65 20 |..// now| remove |
|000019e0| 74 68 65 20 6c 69 6e 6b | 20 66 72 6f 6d 20 74 68 |the link| from th|
|000019f0| 65 20 74 61 67 0d 09 09 | 09 09 52 65 6d 6f 76 65 |e tag...|..Remove|
|00001a00| 4c 69 6e 6b 28 72 65 6d | 61 69 6e 64 65 72 29 3b |Link(rem|ainder);|
|00001a10| 0d 09 09 09 7d 0d 09 09 | 09 74 61 67 20 3d 20 66 |....}...|.tag = f|
|00001a20| 77 44 6f 63 75 6d 65 6e | 74 2e 66 77 54 61 67 73 |wDocumen|t.fwTags|
|00001a30| 2e 66 77 46 69 6e 64 28 | 22 22 2c 66 77 49 74 65 |.fwFind(|"",fwIte|
|00001a40| 6d 29 3b 0d 09 09 7d 0d | 09 09 72 65 74 75 72 6e |m);...}.|..return|
|00001a50| 20 74 61 67 3b 0d 09 7d | 0d 09 0d 09 66 75 6e 63 | tag;..}|....func|
|00001a60| 74 69 6f 6e 20 66 77 42 | 65 66 6f 72 65 45 6e 64 |tion fwB|eforeEnd|
|00001a70| 42 6f 64 79 28 29 0d 09 | 7b 0d 09 09 76 61 72 20 |Body()..|{...var |
|00001a80| 74 61 67 3d 66 77 44 6f | 63 75 6d 65 6e 74 2e 66 |tag=fwDo|cument.f|
|00001a90| 77 54 61 67 73 2e 66 77 | 46 69 6e 64 28 22 22 2c |wTags.fw|Find("",|
|00001aa0| 66 77 49 74 65 6d 29 3b | 0d 09 09 69 66 20 28 74 |fwItem);|...if (t|
|00001ab0| 61 67 29 0d 09 09 7b 0d | 09 09 09 76 61 72 20 68 |ag)...{.|...var h|
|00001ac0| 61 73 46 69 6c 65 20 3d | 20 66 77 50 61 72 61 6d |asFile =| fwParam|
|00001ad0| 65 74 65 72 73 5b 22 46 | 69 6c 65 22 5d 2e 66 77 |eters["F|ile"].fw|
|00001ae0| 48 61 73 46 69 6c 65 3b | 0d 09 09 09 0d 09 09 09 |HasFile;|........|
|00001af0| 74 61 67 20 3d 20 46 69 | 78 49 6e 6c 69 6e 65 41 |tag = Fi|xInlineA|
|00001b00| 63 74 69 6f 6e 53 74 79 | 6c 69 6e 67 28 74 61 67 |ctionSty|ling(tag|
|00001b10| 2c 20 68 61 73 46 69 6c | 65 29 3b 0d 0d 09 09 09 |, hasFil|e);.....|
|00001b20| 2f 2f 20 69 66 20 69 74 | 20 69 73 20 61 20 6c 69 |// if it| is a li|
|00001b30| 6e 6b 20 66 69 65 6c 64 | 20 77 65 20 77 69 6c 6c |nk field| we will|
|00001b40| 20 61 70 70 6c 79 20 74 | 68 65 20 6c 69 6e 6b 0d | apply t|he link.|
|00001b50| 09 09 09 69 66 20 28 68 | 61 73 46 69 6c 65 29 0d |...if (h|asFile).|
|00001b60| 09 09 09 7b 0d 09 09 09 | 09 74 61 67 20 3d 20 74 |...{....|.tag = t|
|00001b70| 61 67 2e 66 77 41 64 64 | 28 22 61 22 2c 20 74 72 |ag.fwAdd|("a", tr|
|00001b80| 75 65 29 3b 0d 09 09 09 | 09 74 61 67 2e 68 72 65 |ue);....|.tag.hre|
|00001b90| 66 20 3d 20 27 22 27 2b | 66 77 50 61 72 61 6d 65 |f = '"'+|fwParame|
|00001ba0| 74 65 72 73 5b 22 46 69 | 6c 65 22 5d 2b 27 22 27 |ters["Fi|le"]+'"'|
|00001bb0| 3b 0d 09 09 09 7d 0d 09 | 09 09 0d 09 09 09 2f 2f |;....}..|......//|
|00001bc0| 20 61 64 64 20 74 68 65 | 20 6e 61 6d 65 20 28 65 | add the| name (e|
|00001bd0| 6e 63 6f 64 65 64 29 0d | 09 09 09 74 61 67 2e 66 |ncoded).|...tag.f|
|00001be0| 77 41 64 64 52 61 77 28 | 66 77 45 6e 63 6f 64 65 |wAddRaw(|fwEncode|
|00001bf0| 28 66 77 50 61 72 61 6d | 65 74 65 72 73 5b 22 4e |(fwParam|eters["N|
|00001c00| 61 6d 65 22 5d 2c 20 66 | 77 50 61 67 65 29 29 3b |ame"], f|wPage));|
|00001c10| 0d 09 09 7d 0d 09 7d 0d | 09 0d 3c 2f 61 63 74 69 |...}..}.|..</acti|
|00001c20| 6f 6e 2d 6a 61 76 61 73 | 63 72 69 70 74 3e 0d 3c |on-javas|cript>.<|
|00001c30| 2f 61 63 74 69 6f 6e 3e | 00 00 00 00 00 00 00 00 |/action>|........|
|00001c40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001c50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001c60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001c70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001c80| 00 00 01 00 00 00 02 1b | 00 00 01 1b 00 00 00 84 |........|........|
|00001c90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ca0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001cb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001cc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001cd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ce0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001cf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d80| 00 00 00 16 00 01 00 00 | 00 00 00 10 00 0c 00 01 |........|........|
|00001d90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 1e 00 28 |........|.......(|
|00001da0| 00 0a 01 c2 02 80 00 28 | 00 0a 01 c2 02 80 00 00 |.......(|........|
|00001db0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 87 |........|........|
|00001dc0| 22 3e c3 6b 3f e5 32 30 | 00 04 00 00 00 01 00 00 |">.k?.20|........|
|00001dd0| 00 00 b5 e8 0f 57 b5 7f | 99 34 b5 21 f1 b9 00 45 |.....W..|.4.!...E|
|00001de0| b0 85 00 01 00 05 00 03 | 16 4c 53 ba 46 57 33 41 |........|.LS.FW3A|
|00001df0| 63 74 69 6f 6e 73 ba 43 | 6f 6e 74 65 6e 74 ba 00 |ctions.C|ontent..|
|00001e00| 04 61 6c 61 6e 00 01 33 | 00 0d 44 6f 77 6e 6c 6f |.alan..3|..Downlo|
|00001e10| 61 64 20 46 69 6c 65 00 | 15 41 64 64 65 64 20 56 |ad File.|.Added V|
|00001e20| 65 72 73 69 6f 6e 20 44 | 65 74 61 69 6c 73 00 00 |ersion D|etails..|
|00001e30| 15 41 64 64 65 64 20 56 | 65 72 73 69 6f 6e 20 44 |.Added V|ersion D|
|00001e40| 65 74 61 69 6c 73 00 00 | 00 00 48 00 09 4f 73 61 |etails..|..H..Osa|
|00001e50| 6b 61 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |ka......|........|
|00001e60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 03 00 |........|........|
|00001e70| 04 00 2e 00 26 02 65 02 | a6 00 2e 00 26 02 65 02 |....&.e.|....&.e.|
|00001e80| a6 b6 94 73 9b 00 00 1a | 76 00 00 1a 8c 00 00 17 |...s....|v.......|
|00001e90| 8f 01 00 00 00 00 04 00 | 01 00 01 00 00 01 00 00 |........|........|
|00001ea0| 00 02 1b 00 00 01 1b 00 | 00 00 84 08 5a 6d fc 02 |........|....Zm..|
|00001eb0| 0a 00 00 00 1c 00 7a 00 | 03 73 74 79 6c 00 00 00 |......z.|.styl...|
|00001ec0| 22 4d 50 53 52 00 01 00 | 2e 63 6b 69 64 00 00 00 |"MPSR...|.ckid...|
|00001ed0| 46 4d 57 42 42 00 00 00 | 52 00 80 ff ff 00 00 00 |FMWBB...|R.......|
|00001ee0| 00 00 00 00 00 03 f0 ff | ff 00 00 00 1a 00 00 00 |........|........|
|00001ef0| 00 03 ed ff ff 00 00 00 | c7 00 00 00 00 00 80 00 |........|........|
|00001f00| 00 00 00 00 3c 00 00 00 | 00 03 f0 ff ff 00 00 01 |....<...|........|
|00001f10| 13 00 00 00 00 09 50 72 | 6f 6a 65 63 74 6f 72 00 |......Pr|ojector.|
|00001f20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001f30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001f40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001f50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001f60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001f70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+